﻿import request from '@/utils/request';
// list
export const chuangxinhuodongList = (params) => {
    return request({
        url: '/chuangxinhuodong/page',
        method: 'post',
        data: params,
    })
};
export const chuangxinhuodongDetail = (id) => {
    return request({
        url: '/chuangxinhuodong/'+id,
        method: 'get',
    })
};
// add
export const chuangxinhuodongSave = (params) => {
    return request({
        url: '/chuangxinhuodong',
        method: 'post',
        data: params,
    })
};
// updt
export const chuangxinhuodongEdit = (params) => {
    return request({
        url: '/chuangxinhuodong',
        method: 'put',
        data: params,
    })
};
// delete
export const chuangxinhuodongDelete = (id) => {
    return request({
        url: '/chuangxinhuodong/'+id,
        method: 'delete',
    })
};
// pldel
export const chuangxinhuodongDeleteList = (chuangxinhuodongs) => {
    return request({
        url: '/chuangxinhuodong/deleteList',
        data:{list:chuangxinhuodongs},
        method: 'post',
    })
};
// all
export const chuangxinhuodongAllList = () => {
    return request({
        url: '/chuangxinhuodong',
        method: 'get',
    })
};

